package dbobjects;

import dbreflection.tablemanagement.DOExternalObject;
import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 15.11.2008
 * Time: 1:52:06
 */
@DOTable(table = "object_param_value")
public class ObjectParamValue extends DatabaseObject {
    @DOField(column = "object_id")
    private Integer objectId;
    @DOExternalObject(table = "object", linkedBy = "objectId", linkedTo = "id")
    private InventoryObject object;
    @DOField(column = "param")
    private Integer paramId;
    @DOExternalObject(table = "object_param", linkedBy = "paramId", linkedTo = "id")
    private ObjectParam param;
    @DOField(column = "value")
    private String value;

    public ObjectParamValue() {
        this.objectId = UNASSIGNEDINT;
        this.paramId = UNASSIGNEDINT;
        this.value = UNASSIGNEDSTRING;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    public InventoryObject getObject() {
        return object;
    }

    public void setObject(InventoryObject object) {
        this.object = object;
    }

    public Integer getParamId() {
        return paramId;
    }

    public void setParamId(Integer paramId) {
        this.paramId = paramId;
    }

    public ObjectParam getParam() {
        return param;
    }

    public void setParam(ObjectParam param) {
        this.param = param;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
